<?php
namespace app\common\model;

use think\Model;

class CheckworkRecord extends Model
{
	protected function getCreateTimeAttr($v)
	{
		return date('Y-m-d',$v);
	}
	protected function getOnTimeAttr($v)
	{
		return $v ? date('H:i',$v) : '';
	}
	protected function getOffTimeAttr($v)
	{
		return $v ? date('H:i',$v) : '';
	}
}